// babel-preset-taro 更多选项和默认值：
// https://github.com/NervJS/taro/blob/next/packages/babel-preset-taro/README.md
module.exports = {
  presets: [
    ["@babel/preset-env", { modules: false }],
    "@babel/preset-typescript",
    //"@babel/preset-flow",
    "@babel/preset-react",
    //   "@babel/preset-es2015",
  ],
  plugins: [
    "@babel/plugin-proposal-optional-chaining", // 可选链
  ],
};
